Artificial Intelligence Model for Rehabilitation Engagement Monitoring